package com.qing.library.utils;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by DaiQing.Zha on 2016/6/8 0008.
 * Email:1642674371@qq.com
 * Description:
 */
public class ToastUtil {

    /**
     * 显示toast 短时间
     * @param context
     * @param msg
     */
    public static void showShortToast(Context context,String msg){

        Toast.makeText(context,msg,Toast.LENGTH_SHORT).show();
    }

    /**
     * 显示toast 长时间
     * @param context
     * @param msg
     */
    public static void showLongToast(Context context,String msg){

        Toast.makeText(context,msg,Toast.LENGTH_LONG).show();
    }
}
